package cc.service;

import cc.model.Student;

import java.util.List;
import java.util.Optional;

/**
 * @Author firefly
 * @since 2018/11/25
 */
public interface StudentService {
    List<Student> list() throws ServiceException;

    Optional<Student> get(String id) throws ServiceException;

    void addStudent(Student student) throws ServiceException;

    void add(String id, String name, String group) throws ServiceException;

    void updateStudent(Student student) throws ServiceException;

    void update(String id, String name, String group) throws ServiceException;

    void deleteStudent(Student student) throws ServiceException;

    void delete(String id) throws ServiceException;
}
